﻿@model Inscriptionem.Areas.Inscriptionem.Models.Views.ContactViewModel

@{
    ViewBag.Title = "Inscriptionem » Contact » Reply";
    Layout = "../Shared/Layout.cshtml";

    ViewBag.CurrentPage = "Contact";
}

<div class="outer" id="contentwrap">
    @{Html.RenderPartial("NavigationMenu");}
    <div class="postcont">
		<div id="content">
            <div class="post type-post status-publish format-standard hentry">
                <h2 class="title">Contact Reply</h2>
                <div class="postdate-single error-message">@Model.Error</div>
                <div class="entry">
                    <p>From: @Model.Mail @(Model.ID == 0 ? string.Empty : ("(ID: " + @Model.ID + ")"))</p>
                    <p>@Model.Message</p>
                </div>
                <hr />

                @if (Model.Responses.Any())
                {
                <text>
                <div class="entry">
                @foreach (var response in Model.Responses.OrderBy(r => r.ID))
                {
                    <text>
                    <p>@response.Message</p>
                    </text> 
                }
                </div>
                <hr />
                </text>
                }
                
                <form method="post" action="/Inscriptionem/Contact/Reply">
				    <div class="entry"> Reply
                        <input type="hidden" name="ID" value="@Model.ID" />
                        <p><textarea name="Message" style="width: 768px;"></textarea></p>
                     </div>

                    <input type="reset" value="Reset" />&nbsp;|&nbsp;<input type="submit" value="Reply" />
                </form>
			</div>
        </div>
	</div>	
</div>
